package com.bonc.apim.entity;

/**
 * 封装了系统提示json对象
 * @author wishes
 */
public class JsonResult {
	
	/** 系统提示消息 默认为default */
	private String msg = "default";
	
	/** 系统提示消息代号 默认为0 */
	private int code = 0;
	
	/** 系统提示数据 */
	private Object data;
	
	public JsonResult() {
		super();
	}
	
	public JsonResult(String msg,int code) {
		super();
		this.msg=msg;
		this.code=code;
	}
	
	public JsonResult(Object data){
		super();
		this.data=data;
	}
	
	public String getMsg() {
		return msg;
	}
	public int getCode() {
		return code;
	}
	public Object getData() {
		return data;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public void setData(Object data) {
		this.data = data;
	}
}
